package com.oglvip.business.dto;

import com.oglvip.business.util.RegexConst;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @auther hanchao
 * @date 2016/12/11 10:58
 */
@Data
public class ForgetPwdFormDto {
    @Pattern(regexp = RegexConst.PHONE_CHECK)
    private String phone;
    @Length(min = 6,max = 16)
    private String newPassword;
    @NotNull
    private String code;
}
